<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.prime.com.tr/ui">

    <h:head>
        <title>Supervisor</title>
        <link href="style.css" rel="stylesheet" type="text/css"></link>
        <div style="text-align: center;"><h:graphicImage url="/Images/back.png"></h:graphicImage></div>

    </h:head>
    <h:body>
        <h:form prependId="false">
            <div id="wrapper">
                <div id="logo">

                </div>
                <div id="header">
                    <!-- 		<div id="menu">
                    
                            </div>    -->
                </div>
                <div class="page">
                    <div id="page-bgtop">

<div id="dummy"></div>
                        <p:panel id="panelsidebar" header="Pages Menu">
                            <h:form>
                            <p:menu styleClass="panel" type="tiered">
                                <p:menuitem value="Main Page" url="Supervisor.xhtml"/>    
                                <p:submenu label="Agent">  
                                    <p:menuitem value="Add" url="SupervisorAddAgent.xhtml"/>
                                    <p:menuitem value="Search" url="SupervisorSearchAgent.xhtml"/>
                                </p:submenu>
                                <p:menuitem value="Daily Report" url="#"/>
                                <f:facet name="label">
                                 <p:menuitem value="Customer"  action="#{supervisorbean.listCustomers}"  ajax="false" />   
                                    
                                </f:facet>
                                
                                 <p:menuitem>
                                     <p:commandLink value="ccs" action="#{supervisorbean.listCustomers}"  ajax="false"/>
                                </p:menuitem>
                                <p:submenu label="House">  
                                    <p:menuitem value="Add" url="SupervisorAddHouse.xhtml"/>
                                    <p:menuitem value="Search" url="SupervisorSearchHouse.xhtml"/>
                                </p:submenu>
                                <p:submenu label="Estate">  
                                    <p:menuitem value="Add Estate" url="SupervisorAddEstate.xhtml"/>
                                    <p:menuitem value="Search" url="SupervisorSearchEstate.xhtml"/>
                                </p:submenu>
                                <p:menuitem value="Sign Out" url="#"/>
                                
                            </p:menu>
                                </h:form>
                        </p:panel>

                        <!-- end #sidebar -->
                        
                        <div id="content">
                            <p:panel>
                                <h3>Welcome to Real Estate Management System !</h3>
                                <p>Please choose an action from menu to do an operation.</p>
                                  <p:commandLink value="ccs" action="#{supervisorbean.listCustomers}"  ajax="false"/>
                                  <p:commandLink value="da" action="#{supervisorbean.generateDailyReport()}"  ajax="false"/>
                                <p:messages/>
                            </p:panel> 

                        </div>
                        <!-- end #content -->

                        <div style="clear: both;">&nbsp;</div>
                    </div>

                    <!-- end #page -->

                </div>
                <div id="footer-bgcontent">
                    <div id="footer" align="center">
                        <p>İstanbul Teknik Üniversitesi - Software Engineering Course - Real Estate Management</p>
                    </div>
                </div>
                <!-- end #footer -->
            </div>

        </h:form>
    </h:body>
</html>